#include "DealH/Common.h"

int cnt=0;
//std::string PluginName="PluginDXf0";

void setUI(QWidget *parent,QStatusBar* statusbar){
    //-----------------------界面美化-------------------------
    QFile file(":/qss/ElegantDarkNew.qss");
    if(file.open(QFile::ReadOnly)){
        QString styleSheet = QLatin1String(file.readAll());  //QByteArray可直接转换为QString
        parent->setStyleSheet(styleSheet);
        file.close();
    }
    //---------------------初始化状态栏-------------------------
    if(statusbar!=nullptr){
        QLabel *labVersion=new QLabel("版本号：V1.0.0.20250420",parent);
        labVersion->setMinimumWidth(150);
        statusbar->addPermanentWidget(labVersion);
    }
    //------------------标题栏设置----------------------
    parent->setWindowIcon(QIcon(":/qss/HWlogo.png"));
}
